﻿<UserControl x:Class="slaChart.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:C1_Silverlight="clr-namespace:C1.Silverlight;assembly=C1.Silverlight"     
    xmlns:C1_Chart="clr-namespace:C1.Silverlight.Chart;assembly=C1.Silverlight.Chart"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="400" d:DesignWidth="600" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

    <StackPanel>
        <Grid x:Name="LayoutRoot" Background="White">
            <Button Content="-" Height="23" HorizontalAlignment="Center"  Margin="-120,6,5,5" Name="bDate1" VerticalAlignment="Top" Width="20" Click="bDate1_Click" />
            <TextBlock Name="eWhereBlock" Width="100" Height="20" Margin="0,7,0,0" VerticalAlignment="Top" HorizontalAlignment="Center" TextAlignment="Center" />
            <Button Content="+" Height="23" HorizontalAlignment="Center"  Margin="128,6,5,5" Name="bDate2" VerticalAlignment="Top" Width="20" Click="bDate2_Click" />
            <Button Content="Рассчитать" Height="23" HorizontalAlignment="Right"  Margin="5,5,5,5" Name="bExec" VerticalAlignment="Top" Width="75" Click="bExec_Click" />
        </Grid>        
        <C1_Chart:C1Chart x:Name="_chart" HorizontalAlignment="Left" VerticalAlignment="Top" Width="800"  Height="500"  >            
        </C1_Chart:C1Chart>        
        <Border CornerRadius="5" BorderThickness="2" BorderBrush="DarkGray" Background="WhiteSmoke" Padding="5" VerticalAlignment="Center">
            <C1_Chart:C1ChartLegend x:Name="_legend"/>
        </Border>
        
    </StackPanel>
    
</UserControl>
